package com.njwb.day04;

public class Test02 {
    //全局静态变量
    static int y=100;

    public static void main(String[] args) {
        //局部变量
        int i=1;
        System.out.println(i);
        System.out.println(y);
        fn(1);
        System.out.println(y);
    }

    public static void fn(int x){//形参 局部变量
        //局部变量
        int j=2;
        System.out.println(j);
        System.out.println(y);
        y=200;
    }
}
